const { json } = require('express');
var express = require('express');
var router = express.Router();
const seatsApi=require("../api/seats")
// 新增座位
router.post('/', async function (req, res, next) {
    const { displayName, theaterId } = req.body;
    const data = await seatsApi.addSeats({ displayName, theaterId });
    res.send(data);
  });
module.exports = router;